package org.travelfusion.xmlclient.ri.xobject.misc;

import java.io.Serializable;
import java.util.Date;

import com.google.gwt.user.client.rpc.IsSerializable;

public class XItem implements Serializable, IsSerializable {

	/** serialVersionUID. */
	private static final long serialVersionUID = 1L;
	
	private String origin;
	
	private String destination;
	
	private String price;
	
	private Date timestamp;
	
	private XBound outbound;
	
	private XBound inbound;

	/**
	 * Returns the destination.
	 * @return the destination.
	 */
	public String getDestination() {
		return destination;
	}

	/**
	 * Sets the destination.
	 * @param destination the destination.
	 */
	public void setDestination(String destination) {
		this.destination = destination;
	}

	/**
	 * Returns the price.
	 * @return the price.
	 */
	public String getPrice() {
		return price;
	}

	/**
	 * Sets the price.
	 * @param price the price.
	 */
	public void setPrice(String price) {
		this.price = price;
	}

	/**
	 * Returns the outbound.
	 * @return the outbound.
	 */
	public XBound getOutbound() {
		return outbound;
	}

	/**
	 * Sets the outbound.
	 * @param outbound the outbound.
	 */
	public void setOutbound(XBound outbound) {
		this.outbound = outbound;
	}

	/**
	 * Returns the inbound.
	 * @return the inbound.
	 */
	public XBound getInbound() {
		return inbound;
	}

	/**
	 * Sets the inbound.
	 * @param inbound the inbound.
	 */
	public void setInbound(XBound inbound) {
		this.inbound = inbound;
	}
	
	/**
	 * Returns the origin.
	 * @return the origin.
	 */
	public String getOrigin() {
		return origin;
	}

	/**
	 * Sets the origin.
	 * @param origin the origin.
	 */
	public void setOrigin(String origin) {
		this.origin = origin;
	}
	
	/**
	 * Returns the timestamp.
	 * @return the timestamp.
	 */
	public Date getTimestamp() {
		return timestamp;
	}

	/**
	 * Sets the timestamp.
	 * @param timestamp the timestamp.
	 */
	public void setTimestamp(Date timestamp) {
		this.timestamp = timestamp;
	}
	
	@Override
	public String toString() {
		return "{" + origin + "-" + destination + "-" + price 
		+ "-" + "timestamp" + "-" + timestamp + "-" + outbound + "-" + inbound + "}";
	}

}
